<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
class ProductAjaxController extends Controller
{
    public function index(Request $request)
    {
    	$list = DB::table('type')->where('parint_id',$request->input('id'))->get();
    	// dd($list);
    	echo json_encode($list);
    }
}
